package cn.smile.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/7/4
 * @Time: 17:02
 * @Description: No Description
 */
@RestController
public class ExceptionController {

    /**
     * 没有权限时跳转的页面
     *
     * @return
     */
    @RequestMapping("/unauthorized")
    public String unauthorized() {
        System.out.println("没有权限");
        return "无操作权限";
    }

}
